<div class="form-group">
    <label class="col-sm-2 control-label"><%= labeltext%></label>
    <div class="col-sm-10">
        <select class="form-control" id="<%= ctrlname%>" name="<%= ctrlname%>">
        <%  for(var i=0; i < datalist.length; i++) { %>
            <option value="<%= datalist[i].value%>" <%= datalist[i].selected%> > <%= datalist[i].display%> </option>
        <% } %>
        </select>
    </div>
</div>